const express = require('express');
const router = express.Router();
const tripController = require('../controllers/tripController');

// 添加出行记录
router.post('/', tripController.addTrip);

// 获取用户出行记录
router.get('/:userId', tripController.getUserTrips);

module.exports = router;